package com.sun.co;

import java.util.Objects;

/**
 * 共现图
 */
public class CoC {

    private String keyWord;

    private String desKeyWord;

    private Integer num = 0;

    public CoC() {
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        CoC coC = (CoC) o;
        return keyWord.equals(coC.keyWord) &&
                desKeyWord.equals(coC.desKeyWord);
    }

    @Override
    public int hashCode() {
        return Objects.hash(keyWord, desKeyWord);
    }

    public String getKeyWord() {
        return keyWord;
    }

    public void setKeyWord(String keyWord) {
        this.keyWord = keyWord;
    }

    public String getDesKeyWord() {
        return desKeyWord;
    }

    public void setDesKeyWord(String desKeyWord) {
        this.desKeyWord = desKeyWord;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    @Override
    public String toString() {
        return "CoC{" +
                "keyWord='" + keyWord + '\'' +
                ", desKeyWord='" + desKeyWord + '\'' +
                ", num=" + num +
                '}';
    }
}
